// 导入组件
import Vue from 'vue';
import Router from 'vue-router';
// 登录
import login from '@/views/login';
// 首页
import index from '@/views/index';
/**
 * 基础菜单
 */
// 公告管理
import NoticeList from '@/views/notice/NoticeList';
import Notice from '@/views/notice/Notice';
// 人才政策
import TalentList from '@/views/talent/TalentList';
import Talent from '@/views/talent/Talent';
// 公司审核列表
import List from '@/views/company/List';
//人才信息
import Info from '@/views/info/Info';



// 启用路由
Vue.use(Router);

// 导出路由 
export default new Router({
    routes: [{
        path: '/',
        name: '',
        component: login,
        hidden: true,
        meta: {
            requireAuth: false
        }
    }, {
        path: '/login',
        name: '登录',
        component: login,
        hidden: true,
        meta: {
            requireAuth: false
        }
    }, {
        path: '/index',
        name: '首页',
        component: index,
        iconCls: 'el-icon-tickets',
        children: [{
            path: '/notice/Notice',
            name: '公告录入',
            component: Notice,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/notice/NoticeList',
            name: '公告列表',
            component: NoticeList,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/talent/TalentList',
            name: '人才政策列表',
            component: TalentList,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/talent/Talent',
            name: '人才政策录入',
            component: Talent,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/company/List',
            name: '公司资质审核',
            component: List,
            meta: {
                requireAuth: true
            }
        },{
            path: '/info/Info',
            name: '人才信息',
            component: Info,
            meta: {
                requireAuth: true
            }
        }]
    }]
})